Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Onboarding] fix skipped api key tests #195911

Merged
merged 10 commits into from
Oct 16, 2024

Conversation

joemcelroy
Copy link
Member

@joemcelroy joemcelroy commented Oct 11, 2024

Summary

Failing due to api keys could not be generated as keys were created previously and were purged in session. Fix is to move the deletion to run at beforeEach rather than the start.

@joemcelroy joemcelroy requested a review from a team as a code owner October 11, 2024 12:56
@joemcelroy joemcelroy added backport:prev-minor Backport to (8.x) the previous minor version (i.e. one version back from main) Team:Search release_note:skip Skip the PR/issue when compiling release notes labels Oct 11, 2024
@joemcelroy joemcelroy marked this pull request as draft October 11, 2024 19:06
Copy link
Contributor

@TattdCodeMonkey TattdCodeMonkey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, approved assuming we run the Flakey Test Runner and everything looks good.

@joemcelroy joemcelroy marked this pull request as ready for review October 13, 2024 20:00
@joemcelroy
Copy link
Member Author

@elasticmachine merge upstream

@kibanamachine
Copy link
Contributor

Flaky Test Runner Stats

🟠 Some tests failed. - kibana-flaky-test-suite-runner#7136

[❌] x-pack/test_serverless/functional/test_suites/search/config.feature_flags.ts: 0/25 tests passed.

see run history

@kibanamachine
Copy link
Contributor

Flaky Test Runner Stats

🎉 All tests passed! - kibana-flaky-test-suite-runner#7144

[✅] x-pack/test_serverless/api_integration/test_suites/search/config.feature_flags.ts: 15/15 tests passed.

see run history

@joemcelroy
Copy link
Member Author

@elasticmachine merge upstream

@elasticmachine
Copy link
Contributor

merge conflict between base and head

@kibanamachine
Copy link
Contributor

Flaky Test Runner Stats

🎉 All tests passed! - kibana-flaky-test-suite-runner#7149

[✅] x-pack/test_serverless/api_integration/test_suites/search/config.feature_flags.ts: 25/25 tests passed.

see run history

@joemcelroy
Copy link
Member Author

@elasticmachine merge upstream

@elasticmachine
Copy link
Contributor

💛 Build succeeded, but was flaky

Failed CI Steps

Metrics [docs]

✅ unchanged

History

@joemcelroy joemcelroy merged commit 708bf08 into elastic:main Oct 16, 2024
28 checks passed
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.x

https://github.com/elastic/kibana/actions/runs/11371986606

@joemcelroy joemcelroy deleted the fix-ftr-api-key-tests branch October 16, 2024 18:50
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Oct 16, 2024
## Summary

Failing due to api keys could not be generated as keys were created
previously and were purged in session. Fix is to move the deletion to
run at beforeEach rather than the start.

- [ ] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
- [x] [Flaky Test
Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was
used on any tests changed

---------

Co-authored-by: Elastic Machine <[email protected]>
(cherry picked from commit 708bf08)
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.x

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Oct 16, 2024
# Backport

This will backport the following commits from `main` to `8.x`:
- [[Onboarding] fix skipped api key tests
(#195911)](#195911)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Joe
McElroy","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-10-16T18:50:33Z","message":"[Onboarding]
fix skipped api key tests (#195911)\n\n## Summary\r\n\r\nFailing due to
api keys could not be generated as keys were created\r\npreviously and
were purged in session. Fix is to move the deletion to\r\nrun at
beforeEach rather than the start.\r\n\r\n- [ ] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common scenarios\r\n- [x] [Flaky
Test\r\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1)
was\r\nused on any tests changed\r\n\r\n---------\r\n\r\nCo-authored-by:
Elastic Machine
<[email protected]>","sha":"708bf08f91502a501f9744a4a0b35c6cbdeb9990","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","Team:Search","backport:prev-minor"],"title":"[Onboarding]
fix skipped api key
tests","number":195911,"url":"https://github.com/elastic/kibana/pull/195911","mergeCommit":{"message":"[Onboarding]
fix skipped api key tests (#195911)\n\n## Summary\r\n\r\nFailing due to
api keys could not be generated as keys were created\r\npreviously and
were purged in session. Fix is to move the deletion to\r\nrun at
beforeEach rather than the start.\r\n\r\n- [ ] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common scenarios\r\n- [x] [Flaky
Test\r\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1)
was\r\nused on any tests changed\r\n\r\n---------\r\n\r\nCo-authored-by:
Elastic Machine
<[email protected]>","sha":"708bf08f91502a501f9744a4a0b35c6cbdeb9990"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/195911","number":195911,"mergeCommit":{"message":"[Onboarding]
fix skipped api key tests (#195911)\n\n## Summary\r\n\r\nFailing due to
api keys could not be generated as keys were created\r\npreviously and
were purged in session. Fix is to move the deletion to\r\nrun at
beforeEach rather than the start.\r\n\r\n- [ ] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common scenarios\r\n- [x] [Flaky
Test\r\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1)
was\r\nused on any tests changed\r\n\r\n---------\r\n\r\nCo-authored-by:
Elastic Machine
<[email protected]>","sha":"708bf08f91502a501f9744a4a0b35c6cbdeb9990"}}]}]
BACKPORT-->

Co-authored-by: Joe McElroy <[email protected]>
hop-dev pushed a commit to hop-dev/kibana that referenced this pull request Oct 17, 2024
## Summary

Failing due to api keys could not be generated as keys were created
previously and were purged in session. Fix is to move the deletion to
run at beforeEach rather than the start.

- [ ] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
- [x] [Flaky Test
Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was
used on any tests changed

---------

Co-authored-by: Elastic Machine <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:prev-minor Backport to (8.x) the previous minor version (i.e. one version back from main) release_note:skip Skip the PR/issue when compiling release notes Team:Search v8.16.0 v9.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants